/*节点验收查询*/
'use strict';
const nodeAcceptanceQuery = require('../actions/nodeAcceptance/nodeAcceptanceQueryAction');
module.exports = async function (ctx) {
    let param = ctx.method === 'GET' ? ctx.query : ctx.request.fields;
    let action_type = param.action_type;
    try {
        switch (action_type) {
            case 'nodeAcceptanceQuery': // 节点验收查询
                param.user_id=ctx.session.user.user_id;
                param.is_manager = ctx.session.user.is_manager;
                ctx.body = await nodeAcceptanceQuery(param);
                break;
        }
    } catch (e) {
        ctx.body = {success: false, message: e.message};
    }

};